package com.unhz.taigu.service.impl;

import com.unhz.generator.dao.KeyMapper;
import com.unhz.generator.pojo.Key;
import com.unhz.taigu.service.KeyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 曹显贵
 * @Description:
 * @Date: Created in 18:39 2018/2/10 0010
 * @Modified By:
 */
@Service
public class KeyServiceImpl implements KeyService{

    @Autowired
    private KeyMapper keyMapper;


//    @Override
//    public void updateInsoleKey(Key key) {
//        keyMapper.updateInsoleKey(key);
//    }

    @Override
    public void updateKey(Key key) {
        keyMapper.updateKey(key);
    }

//    @Override
//    public void updateOrderKey(Key key) {
//        keyMapper.updateOrderKey(key);
//    }

    @Override
    public Key selectKey() {
        return keyMapper.selectKey();
    }
}
